import { req,formreq } from './axiosFun';

/**
 * 商品管理
 **/
// 获取商品类型信息
export const productTypeList = (params) => { return req("post", "/api/seller/queryProductType", params) };
// 更新商品类型信息
export const productTypeUpdate = (params) => { return req("post", "/api/seller/updateProductType", params) };
// 添加商品类型信息
export const productTypeSave = (params) => { return req("post", "/api/seller/saveProductType", params) };
// 删除商品类型信息
export const productTypeDel = (params) => { return req("post", "/api/seller/removeProductType", params) };
// 获取商品信息
export const productList = (params) => { return req("post", "/api/seller/queryProduct", params) };
// 更新商品信息
export const productUpdate = (params) => { return formreq("post", "/api/seller/updateProduct", params) };
// 添加商品信息
export const productSave = (params) => { return formreq("post", "/api/seller/saveProduct", params) };
// 删除商品信息
export const productDel = (params) => { return req("post", "/api/seller/removeProduct", params) };
// 商品上架
export const productShow = (params) => { return req("post", "/api/seller/showProduct", params) };
// 商品下架
export const productHide = (params) => { return req("post", "/api/seller/hideProduct", params) };
//销售统计信息
export const sellerInfoList = (params) => { return req("post", "/api/seller/getSellInfo", params) };
